﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PollSetting.ascx.cs"
    Inherits="Assessment.Management.UI.Admin.UserControls.Statistic.PollSetting" %>
<link href="../../css/toolbar.css" rel="stylesheet" type="text/css" />
<style type="text/css">
    .tableDisplay
    {
        width: 99%;
        margin-left: 5px;
        margin-top: 5px;
        border-left: 1px solid #abc1de;
        border-bottom: 1px solid #abc1de;
    }
    .tableDisplay tr th
    {
        border-right: 1px solid #abc1de;
        border-top: 1px solid #abc1de;
        background-color: #f4f4f4;
        text-align: left;
        padding-right: 5px;
        font-weight: bold;
        padding-top: 3px;
        padding-left: 10px;
        padding-bottom: 3px;
        height: 15px;
    }
    .tableDisplay tr td
    {
        padding-left: 5px;
        border-right: 1px solid #abc1de;
        border-top: 1px solid #abc1de;
        padding-top: 3px;
        padding-bottom: 3px;
        height: 15px;
    }
    .tableDisplay tr td table tr td
    {
        border-top: 1px solid transparent;
        border-right: 1px solid transparent;
    }
</style>
<div class="toolbar">
    <div>
        QUẢN LÝ BÌNH CHỌN
    </div>
    <ul class="icon_toolbar">
        <li class="icon_search">
            <asp:LinkButton ID="btnSearch" runat="server" Text="Tìm kiếm" OnClick="btnSearch_Click"></asp:LinkButton>
        </li>
        <li class="icon_add"><a id="hypAddNewPoll" runat="server">Tạo mới</a> </li>
        <li class="icon_delete">
            <asp:LinkButton ID="btnDelete" runat="server" OnClientClick="return confirm('Bạn có chắc chắn muốn xóa các mục đã chọn?')"
                OnClick="btnDelete_Click">Xóa</asp:LinkButton>
        </li>
    </ul>
</div>
<div style="clear: both">
</div>
<table class="tableDisplay">
    <tr>
        <td>
            Tên giáo viên:
        </td>
        <td>
            <asp:TextBox ID="txtTeacherName" runat="server" Width="250px" Height="25px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Lớp:
        </td>
        <td>
            <asp:TextBox ID="txtClassName" runat="server" Width="250px" Height="25px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Môn:
        </td>
        <td>
            <asp:TextBox ID="txtSubjectName" runat="server" Width="250px" Height="25px"></asp:TextBox>
        </td>
    </tr>
</table>
Chọn khoa:&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="ddlKhoa" runat="server" DataTextField="DepartmentName" DataValueField="ID"
    AutoPostBack="True" OnSelectedIndexChanged="ddlKhoa_SelectedIndexChanged" 
    Width="200px">
</asp:DropDownList>
<br />
<br />
<asp:GridView ID="grvListPoll" runat="server" AutoGenerateColumns="False" CellPadding="4"
    ForeColor="#333333" GridLines="None" OnRowDataBound="grvListPoll_RowDataBound"
    Width="100%" onrowdeleting="grvListPoll_RowDeleting">
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
        <asp:TemplateField HeaderText="CheckAll">
            <HeaderTemplate>
                <asp:CheckBox ID="chkSelectAll" runat="server" AutoPostBack="true" OnCheckedChanged="chkSelectAll_CheckedChanged" />Chọn
            </HeaderTemplate>
            <ItemTemplate>
                <asp:HiddenField runat="server" ID="hidVersion" />
                <asp:HiddenField runat="server" ID="hidPollID" />
                <asp:CheckBox ID="chkSelect" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Mã">
            <ItemTemplate>
                <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="TeacherName" HeaderText="Tên giáo viên" ReadOnly="True" />
        <asp:BoundField DataField="ClassName" HeaderText="Lớp" ReadOnly="True" />
        <asp:BoundField DataField="SubjectName" HeaderText="Môn" ReadOnly="True" />
        <asp:TemplateField HeaderText="Mật khẩu">
            <ItemTemplate>
                <asp:Label ID="lblPassword" runat="server" Text='<%# Eval("Password") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Trạng thái">
            <ItemTemplate>
                <asp:Label ID="lblState" runat="server" Text='<%# Eval("State") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Sửa">
            <ItemTemplate>
                <asp:HyperLink ID="hypEdit" runat="server">
                    <asp:Image runat="server" ID="Image1" ImageUrl="../../AdminImages/Grid_Edit.png"
                        BorderWidth="0" BorderColor="Transparent" />
                </asp:HyperLink>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Xóa">
            <ItemTemplate>
                <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="../../AdminImages/Grid_Delete.png"
                    BorderColor="Transparent" BackColor="Transparent" Visible="true" />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <EditRowStyle BackColor="#999999" />
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#E9E7E2" />
    <SortedAscendingHeaderStyle BackColor="#506C8C" />
    <SortedDescendingCellStyle BackColor="#FFFDF8" />
    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
<asp:Label ID="lblMessage" runat="server" CssClass="err"></asp:Label>

